package cn.rmc.hrm.exception.errorcode;

public enum  ErrorCode {
    TENANT_NAME_NOT_NULL(601,"机构名字不能为空！"),
    CREDIT_CODE_ILLEGAL(602,"信用码不合法！"),
    PHONE_ILLEGAL(603,"手机号不合法！"),
    TENANT_IS_EXIST(604,"机构已经被注册，请直接登录！"),

    OPER_FAIL(605,"非法操作！");

    private int code;
    private String message;

    ErrorCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return "【"+code+"】" + message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
